package com.bharatonjava.swift.dao.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.bharatonjava.swift.domain.Role;

public class RoleMapper implements RowMapper<Role>{

	@Override
	public Role mapRow(ResultSet rs, int rowNum) throws SQLException {
		Role r = new Role();
		r.setRoleName(rs.getString("ROLENAME"));
		return r;
	}

}
